#ifndef MESSAGELISTCONTROLLER_H
#define MESSAGELISTCONTROLLER_H

#include <QObject>
#include "../../view/trainInformation/messagelist.h"
#include <QDebug>
class MessageListController : public QObject
{
    Q_OBJECT
public:
    explicit MessageListController(QObject *parent = nullptr);

    void show(QVBoxLayout *vLayout,int w);
    //司机身份证号码
    void setDriverIDNumber(QString num);
    void setAddItem(QString str);


private:
    //消息列表
    MessageList *messageList;
    int rowIndex;
    QStringList stringList;
private slots:
    void upScrollTo();
    void downScrollTo();
signals:

};

#endif // MESSAGELISTCONTROLLER_H
